<template>
  <div>
    App
    <!-- 
      Vue2中给组件绑定的事件默认都是自定义事件
      要想绑定DOM事件，加 .native
     -->
    <Child @click.native="say" />
  </div>
</template>

<script>
import Child from "./Child.vue";

export default {
  name: "App",
  methods: {
    say() {
      console.log("hello");
    },
  },
  components: {
    Child,
  },
};
</script>

<style></style>
